var locat = (window.location + '').split('/');
$(function() {
	if ('tool' == locat[3]) {
		locat = locat[0] + '//' + locat[2];
	} else {
		locat = locat[0] + '//' + locat[2] + '/' + locat[3];
	}
	;
});

$(top.hangge());

// 重置
function gReload() {
	top.jzts();
	$("#J_Uploader").val('');
	self.location.reload();
}

// 请求类型
function setType(value) {
	$("#J_Uploader").val(value);
}

function intfBox() {
	var intfB = document.getElementById("json-field");
	var intfBt = document.documentElement.clientHeight;
	intfB.style.height = (intfBt - 320) + 'px';
}
intfBox();
window.onresize = function() {
	intfBox();
};
